<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>部品库管理终端</title>
  <meta name="keywords" content="部品库管理终端">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/assets/css/admin.css">
  <link rel="stylesheet" href="/assets/css/app.css">
</head>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
      <img src="/assets/i/worker.png" width="36" height="36" onclick="window.location.href='/store/index';"> <strong>部品库管理终端</strong>
  </div>
</header>

#if(notice)
<script>
  alert("#(notice)");
</script>
#end

<div class="am-cf admin-main">
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">入场计划表</strong></div>
      </div>
      <hr>
      <div class="am-g">
        <div class="am-u-sm-12">
          <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
              <thead>
              <tr>
                <th class="table-id">ID</th>
                <th class="table-title">公司名称</th>
                <th class="table-type">车牌号</th>
                <th class="table-author am-hide-sm-only">入库时间</th>
                <th class="table-author am-hide-sm-only">入库位置</th>
                <th class="table-date am-hide-sm-only">车辆状态</th>
                <th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>
                #for(scheduler : schedulerList)
                #if(scheduler.status == com.denso.store.common.Status::ARRIVE)
                <tr class="am-active">
                #elseif(scheduler.status == com.denso.store.common.Status::PASS || scheduler.status == com.denso.store.common.Status::IN)
                <tr class="am-success">
                #elseif(tools.isLate(scheduler.planTime))
                <tr class="am-danger">
                #else
                <tr>
                #end
                  <td>#(for.count)</td>
                  <td>#(scheduler.company)</td>
                  <td>#(scheduler.van)</td>
                  <td class="am-hide-sm-only">#(tools.getDateTimeStr(scheduler.planTime))</td>
                  <td class="am-hide-sm-only">#(scheduler.position)</td>
                  <td class="am-hide-sm-only">#(status.getStr(scheduler.status))</td>
                  <td>
                    <div class="am-btn-toolbar">
                        #if(scheduler.status == com.denso.store.common.Status::ARRIVE)
                        <button type="button" class="am-btn am-btn-primary am-btn-xs" onclick="window.location.href='/store/pass?id=#(scheduler.id)';"><span class="am-icon-check"></span> 允许放行</button>
                        #end
                    </div>
                  </td>
                </tr>
                #else
                <tr>
                  <td colspan="7" style="text-align: center">暂无记录</td>
                </tr>
                #end
              </tbody>
            </table>
            <hr />
          </form>
        </div>

      </div>
    </div>

  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/app.js"></script>

<script>
  $(function () {
    setInterval(function () {
      window.location.href = "/store/index";
    }, 4000);
  });
</script>

</body>
</html>
